package com.pzb.order.service.impl;

import com.pzb.order.domain.OdOrderSetting;
import com.pzb.order.mapper.OdOrderSettingMapper;
import com.pzb.order.service.IOdOrderSettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 订单设置Service业务层处理
 * 
 * @author Mr_Wu
 * @date 2021-12-29
 */
@Service
public class OdOrderSettingServiceImpl implements IOdOrderSettingService 
{
    @Autowired
    private OdOrderSettingMapper odOrderSettingMapper;

    /**
     * 查询订单设置
     * 
     * @param extAppid 订单设置主键
     * @return 订单设置
     */
    @Override
    public OdOrderSetting selectOdOrderSetting(String extAppid)
    {
        return odOrderSettingMapper.selectOdOrderSetting(extAppid);
    }


    /**
     * 新增订单设置
     * 
     * @param odOrderSetting 订单设置
     * @return 结果
     */
    @Override
    public int insertOdOrderSetting(OdOrderSetting odOrderSetting)
    {
        return odOrderSettingMapper.insertOdOrderSetting(odOrderSetting);
    }

    /**
     * 修改订单设置
     * 
     * @param odOrderSetting 订单设置
     * @return 结果
     */
    @Override
    public int updateOdOrderSetting(OdOrderSetting odOrderSetting)
    {
        return odOrderSettingMapper.updateOdOrderSetting(odOrderSetting);
    }

}
